package org.chen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.chen.common.model.DailyStats;
import org.chen.common.page.CommonPage;
import org.chen.common.request.PageParamRequest;
import org.chen.common.request.RejectRefundRequest;
import org.chen.common.response.OrderTravelDetailResponse;
import org.chen.common.vo.MyRecord;

import java.util.Date;
import java.util.List;

public interface DailyStatsService extends IService<DailyStats> {

    DailyStats findByStatDateForUpdate(Date statDate);

    void updateByIdWithVersion(DailyStats dailyStats);

    DailyStats getDailyStats();

    CommonPage<OrderTravelDetailResponse> getRefundOrders(Integer status, String orderId, PageParamRequest pageRequest);

    CommonPage<OrderTravelDetailResponse> getOrders(Integer type, String orderId, PageParamRequest pageRequest);

    Boolean approveRefund(Long id, String orderId);

    Boolean rejectRefund(Long id, String orderId, RejectRefundRequest request);
}
